Optimal. Leaf size=38 \[ \frac{2 x \sqrt{\sin (a+b x)}}{b}-\frac{4 E\left (\left .\frac{1}{2} \left (a+b x-\frac{\pi }{2}\right )\right |2\right )}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0222333, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {3443, 2639} \[ \frac{2 x \sqrt{\sin (a+b x)}}{b}-\frac{4 E\left (\left .\frac{1}{2} \left (a+b x-\frac{\pi }{2}\right )\right |2\right )}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3443
Rule 2639
Rubi steps
\begin{align*} \int \frac{x \cos (a+b x)}{\sqrt{\sin (a+b x)}} \, dx &=\frac{2 x \sqrt{\sin (a+b x)}}{b}-\frac{2 \int \sqrt{\sin (a+b x)} \, dx}{b}\\ &=-\frac{4 E\left (\left .\frac{1}{2} \left (a-\frac{\pi }{2}+b x\right )\right |2\right )}{b^2}+\frac{2 x \sqrt{\sin (a+b x)}}{b}\\ \end{align*}
Mathematica [C] time = 1.18553, size = 86, normalized size = 2.26 \[ \frac{2 \sqrt{\sin (a+b x)} \left (2 \tan \left (\frac{1}{2} (a+b x)\right ) \sqrt{\sec ^2\left (\frac{1}{2} (a+b x)\right )} \text{Hypergeometric2F1}\left (\frac{1}{2},\frac{3}{4},\frac{7}{4},-\tan ^2\left (\frac{1}{2} (a+b x)\right )\right )-6 \tan \left (\frac{1}{2} (a+b x)\right )+3 b x\right )}{3 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.204, size = 308, normalized size = 8.1 \begin{align*}{\frac{-i \left ( bx+2\,i \right ) \left ( \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) ^{2}-1 \right ) \sqrt{2}}{{b}^{2}{{\rm e}^{i \left ( bx+a \right ) }}}{\frac{1}{\sqrt{{\frac{-i \left ( \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) ^{2}-1 \right ) }{{{\rm e}^{i \left ( bx+a \right ) }}}}}}}}-2\,{\frac{\sqrt{2}\sqrt{-i \left ( \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) ^{2}-1 \right ){{\rm e}^{i \left ( bx+a \right ) }}}}{{b}^{2}{{\rm e}^{i \left ( bx+a \right ) }}} \left ({\frac{2\,i \left ( i-i \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) ^{2} \right ) }{\sqrt{{{\rm e}^{i \left ( bx+a \right ) }} \left ( i-i \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) ^{2} \right ) }}}-{\frac{\sqrt{{{\rm e}^{i \left ( bx+a \right ) }}+1}\sqrt{-2\,{{\rm e}^{i \left ( bx+a \right ) }}+2}\sqrt{-{{\rm e}^{i \left ( bx+a \right ) }}} \left ( -2\,{\it EllipticE} \left ( \sqrt{{{\rm e}^{i \left ( bx+a \right ) }}+1},1/2\,\sqrt{2} \right ) +{\it EllipticF} \left ( \sqrt{{{\rm e}^{i \left ( bx+a \right ) }}+1},1/2\,\sqrt{2} \right ) \right ) }{\sqrt{-i \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) ^{3}+i{{\rm e}^{i \left ( bx+a \right ) }}}}} \right ){\frac{1}{\sqrt{{\frac{-i \left ( \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) ^{2}-1 \right ) }{{{\rm e}^{i \left ( bx+a \right ) }}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \cos \left (b x + a\right )}{\sqrt{\sin \left (b x + a\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: UnboundLocalError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \cos{\left (a + b x \right )}}{\sqrt{\sin{\left (a + b x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \cos \left (b x + a\right )}{\sqrt{\sin \left (b x + a\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]